package com.liudadan.java_springboot_base_helloworld.controller;

import com.liudadan.java_springboot_base_helloworld.pojo.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("user")
public class UserController {

    @GetMapping("getUser")
    public User getUser(){
        User user = new User();
        user.setName("刘大胆");
        user.setAge(18);
        return user;
    }
}
